<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<title>FLDCMS后台管理系统</title>
<meta name="keywords" content="FLDCMS，FLDCMS后台管理系统">
<meta name="description" content="FLDCMS，是一款由FLD开发的轻量级扁平化网站后台模板，适合中小型CMS后台系统。">
{include file="public/header" /}
</head>
<style>
    
</style>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页
	{notempty name="$node_info.p_title"}
	<span class="c-gray en">&gt;</span>
		{$node_info.p_title}
	{/notempty}
	{notempty name="$node_info.node_title"}
	<span class="c-gray en">&gt;</span>
		{$node_info.node_title}
	{/notempty}
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>
<div class="page-container">
	<form class="form form-horizontal" id="form-add" enctype="multipart/form-data" action="{:url('site/setting')}" method="post">
		<input type="hidden" name="form_submit" value="ok"/>
		<div id="tab-system" class="HuiTab">
			<div class="tabBar cl">
				<a href="{:url('site/setting')}"><span class="current">网站配置</span></a>
				<a href="{:url('site/email_setting')}"><span>邮件设置</span></a>
			</div>
			<div class="tabCon" style="display: block;">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						网站名称：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" name="website_name" id="website_name" placeholder="控制在25个字、50个字节以内" value="{$website_info.website_name}" class="input-text" maxlength="50">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						网站标题：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" name="website_title" id="website_title" placeholder="控制在25个字、50个字节以内" value="{$website_info.website_title}" class="input-text" maxlength="50">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						网站关键字：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" name="website_keywords" id="website_keywords" placeholder="5个左右,8汉字以内,用英文,隔开" value="{$website_info.website_keywords}" class="input-text" maxlength="160">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						网站描述：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" name="website_description" id="website_description" placeholder="空制在80个汉字，160个字符以内" value="{$website_info.website_description}" class="input-text" maxlength="160">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						网站备案号：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" name="website_icp" id="website_icp" placeholder="京ICP备00000000号" value="{$website_info.website_icp}" class="input-text" maxlength="50">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						网站Logo：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<span class="btn-upload form-group">
						  <input class="input-text upload-url radius" type="text" name="uploadfile" id="uploadfile" readonly>
						  <a href="javascript:void();" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
						  <input type="file" name="website_logo" class="input-file" value="">
						</span>
						<span class="wrap">
							<a class="btn btn-primary radius toolimg">
								<i class="Hui-iconfont">&#xe725;</i>
							</a>
							<div class="inner">
				                <img src="/{$website_info.website_logo}" />       
				            </div>
						</span>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						联系人：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" name="website_contact" id="website_contact" placeholder="控制在50个字节以内" value="{$website_info.website_contact}" class="input-text" maxlength="50">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						具体地址：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" name="website_address" id="website_address" placeholder="控制在255个字节以内" value="{$website_info.website_address}" class="input-text" maxlength="255">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">
						联系电话：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" name="website_phone" id="website_phone" placeholder="控制在100个字节以内" value="{$website_info.website_phone}" class="input-text" maxlength="100">
					</div>
				</div>
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
				<button onClick="removeIframe();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>
{include file="public/footer" /}
<script type="text/javascript">
$(function(){
	// 上传图片类型
	$('input[class="input-file"]').change(function(){
		var filepatd = $(this).val();
		var extStart = filepatd.lastIndexOf(".");
		var ext = filepatd.substring(extStart,filepatd.lengtd).toUpperCase();		
		if(ext != ".PNG" && ext != ".GIF" && ext != ".JPG" && ext != ".JPEG"){
			alert("图片限于png,gif,jpeg,jpg格式");
			$(this).attr('value','');
			return false;
		}
	});
	
	$(".toolimg").toolimg();
});
</script>

</body>
</html>